/* 
 * File:   F01.h
 * Author: jcrada
 *
 * Created on 23 July 2011, 12:58 PM
 */

#ifndef JRV_F01_H
#define	JRV_F01_H

#include "ecb/base/Problem.h"

#include "ecb/function/Schwefel1_2.h"

namespace ecb {
    namespace jrv11 {

        class F01 : public Problem {
        private:
            Problem* schwefel;
        public:

            F01(int dimensions)
            : Problem("F01", "Quadric", dimensions,
            -100, 100, true) {
                schwefel = new Schwefel1_2;
            }

            ~F01() {
                delete schwefel;
            }

            scalar f(const std::vector<scalar>& x) {
                return schwefel->f(x);
            }
        };
    }
}

#endif	/* JRV_F01_H */

